﻿using MxWeiXinPF.Common;
using MxWeiXinPF.Web.UI;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace MxWeiXinPF.Web.weixin.toupiao
{
    public partial class actionBrief : WeiXinPage
    {
        protected int wid;
        protected int aid;
        protected int mid;
        protected bool ckHdBegin = true;
        protected   Model.wx_tp_action hdModel;
        protected void Page_Load(object sender, EventArgs e)
        {
            wid = MyCommFun.RequestWid();
            aid = MyCommFun.RequestInt("aid");
            mid = MyCommFun.RequestInt("mid");
            string thisUrl = MyCommFun.getWebSite() + "/weixin/toupiao/memberDetail.aspx?wid=" + wid + "&aid=" + aid;
            jssdkInit(wid, thisUrl);
            ckHd();
            
        }

        /// <summary>
        /// 
        /// </summary>
        public void ckHd()
        {
            BLL.wx_tp_action hdBll = new BLL.wx_tp_action();
            //判断活动是否开始
            hdModel = hdBll.GetModel(aid);
            ckHdBegin = hdBll.actionIsHF(hdModel);

        }
    }
}